package com.atguigu.tingshu.search.service;

import com.atguigu.tingshu.query.search.AlbumIndexQuery;
import com.atguigu.tingshu.vo.search.AlbumSearchResponseVo;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService {

    //上架专辑
    void upperAlbum(Long albumId);

    //下架专辑
    void lowerAlbum(Long albumId);

    //专辑检索（搜索栏）
    AlbumSearchResponseVo search(AlbumIndexQuery albumIndexQuery) throws Exception;

    //根据一级分类Id获取数据
    List<Map<String, Object>> channel(Long category1Id) throws Exception;

    //自动补全功能
    List<String> completeSuggest(String keyword) throws Exception;
}
